import { axios } from '@/utils/request'

//组织架构列表
export function frameWorkList(params) {
  return axios({
    url: '/school/structures',
    method: 'post',
    data: params
  })
}

export function frameWorkCreate(params) {
  return axios({
    url: '/school/structures/create',
    method: 'post',
    data: params
  })
}

export function frameWorkDel(params) {
  return axios({
    url: '/school/structures/'+params+'/delete',
    method: 'post',
  })
}



export function frameWorkEdit(params,id) {
  return axios({
    url: '/school/structures/'+id+'/update',
    method: 'post',
    data:params
  })
}
// /structures/6/update